package com.itcs.pap;

import com.itcs.jpa.dao.BaseRepositoryFactoryBean;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 服务启动
 * 
 * @author LiuPeng
 * @date 2017年12月6日
 * 
 */
@SpringBootApplication(scanBasePackages = { "com.itcs" })
@EnableJpaRepositories(basePackages = {"com.itcs.pap"},
		repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class)
@EnableSwagger2
@MapperScan("com.itcs.trading.mapper")
public class PapServierApplication {

	public static void main(String[] args) throws Exception {
		SpringApplication.run(PapServierApplication.class, args);
	}
}